package mi.payment.transaction.authorize.complete.revoke;

import android.view.View;

import java.util.List;

import mi.payment.R;
import mi.payment.db.dao.PayDetail;
import mi.payment.transaction.revoke.BaseRevokeListActivity;

/**
 * 预授权完成撤销模块 -- 主界面
 */
public class PreAuthorizeCompleteRevokeActivity extends BaseRevokeListActivity {

    @Override
    public void setTitle() {
        mTitleView.setRightImageVisibility(View.GONE);
        mTitleView.setCenterText(R.string.pre_auth_complete_revoke);
    }

    @Override
    public List<PayDetail> getSwipeCardSourceData() {
        return mPayDetailModel.getPreAuthorCompleteAndRevokedList();
    }

    @Override
    public List<PayDetail> getQRCodeSourceData() {
        return null;
    }

    @Override
    public List<PayDetail> getAllSourceData() {
        return mPayDetailModel.getPreAuthorCompleteAndRevokedList();
    }

    @Override
    public boolean isPreAuthorizeCompleteRevoke() {
        return true;
    }

    @Override
    public void onSearchPressed() {

    }


}
